package com.cheng.xbsc.mapper;

import com.cheng.xbsc.entity.User;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

public interface UserMapper extends Mapper<User> {


    User findByUsername(String username);

    User findByEmail(String email);

    void updatePassword(User user);

    User findByUsernameAndPassword(User user);

    void updateUserPicById(@Param("userId") Integer userId, @Param("userPic") String userPic);

    User findByWxOpenid(String openid);
}